<?php
<?php
/**
 * @Author: Wherein
 * @Date: 2020-03-01 13:58
 * @Descripttion: 
 */
defined('IN_IA') or exit('Access Denied');
global $_W, $_GPC;

$controller = empty($_GPC['do']) ? 'employee' : $_GPC['do'];
$action = empty($_GPC['act']) ? 'index' : $_GPC['act'];

$file = KB_WEB . 'controller/' . $controller . '.php';
$controller = ucfirst($controller);

$uniacid = !empty($this->uniacid) ? $this->uniacid : $_GPC['uniacid'];
empty($uniacid) && $uniacid = $_SESSION['uniacid'];
if (empty($uniacid)) message('错误', $_W['siteroot'], 'error');
$_W['uniacid'] = $uniacid;

include_once KB_WEB . 'controller/base.php';
include_once $file;

$c = new $controller();
$c->__set('modulename', $this->modulename);
$c->__set('weid', $this->weid);
$c->__set('uniacid', $uniacid);
$c->__set('__define', $this->__define);

$c->$action();
